//
//  SGTotalLoveValue.m
//  MomHelp
//
//  Created by xuguoyong on 16/8/22.
//  Copyright © 2016年 hudongkeji. All rights reserved.
//

#import "SGTotalLoveValue.h"

@interface SGTotalLoveValue ()
{
    //总爱心值
    XGYLabel *_textLabel;
    //爱心值
    XGYLabel *_vulueLabel;
}

@end

@implementation SGTotalLoveValue

- (instancetype)init
{
    self = [super init];
    if (self) {
        [self setUpUI];
        
        self.backgroundColor = [UIColor whiteColor];
        
    }
    return self;
}


- (void)setUpUI
{
    _textLabel  = [[XGYLabel alloc]initWithFrame:CGRectMake(0, 0, 100, 30)];
    _textLabel.textColor = textColor666666;
    _textLabel.text = @"总爱心值";
    _textLabel.font = textFont28;
    [self addSubview:_textLabel];
 
    _vulueLabel  = [[XGYLabel alloc]initWithFrame:CGRectMake(0, 0, 100, 30)];
    _vulueLabel.textColor = MainColor;
    _vulueLabel.text = @"1500";
    _vulueLabel.font = textFont32;
    debugView(_vulueLabel);
    [self addSubview:_vulueLabel];
    
    // _textLabel 约束
    _textLabel.sd_layout.centerXEqualToView(self).offset(-35).heightIs(20).centerYEqualToView(self);
    [_textLabel setSingleLineAutoResizeWithMaxWidth:200];
    // _vulueLabel 约束
    _vulueLabel.sd_layout.leftSpaceToView(_textLabel,7).heightIs(20).centerYEqualToView(_textLabel).rightSpaceToView(self,15);
    [self setNeedsLayout];
   
   
    
}


@end
